<template>
    <view class="__none_tips">
		<image v-if="img" :src="img" mode="widthFix"></image>
		<slot>
			{{ tipsText }}
		</slot>
    </view>
</template>

<script setup lang="ts">
import PD from '../libs';

withDefaults(defineProps<{
	img : string,
	tipsText : string
}>(), {
	img : PD.PdHelp.getCosImg('jiedanbao/empty-run-book.png'),
	tipsText : '暂无相关数据',
});
</script>

<style scoped lang="less">
.__none_tips {
	font-size: 28rpx;
	color: #999;
	padding: 50px 0;
	text-align: center;
	image {
		width: 400rpx;
		display: block;
		margin: 0 auto 48rpx;
	}
}
</style>